package com.hisense.hiioc.hismartplate.entity.table.enumdefine;

/**
 * @Author: almo
 * @Date: 2018/12/18 上午10:55
 * @Version 1.0
 */
public enum ClientClickType {

    CLICK(0),
    IN(1),
    OUT(2),
    NA(3);

    private int index;

    ClientClickType(int index) {
        this.index = index;
    }

    public static ClientClickType intOf(int index) {
        if (index >= 0 && index <= 2)
            return ClientClickType.values()[index];
        return NA;
    }

    public int getIndex() {
        return index;
    }
}
